package com.net.xpay.core.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.net.xpay.common.enums.user.ClientFrom;
import com.net.xpay.core.enums.BillPayMethod;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * @author  on 24/04/2018.
 * 支付的基础Model
 */
@Getter
@Setter
@NoArgsConstructor
public class BuyModel {
    @ApiModelProperty(notes = "支付方式")
    private BillPayMethod billPayMethod;

    @ApiModelProperty(notes = "原始需要支付的钱")
    private long amount;

    @ApiModelProperty(notes = "通过账户支付的金额")
    private long accountMoney;

    @ApiModelProperty(notes = "通过支付渠道支付的钱")
    private long payChannelMoney;

    @ApiModelProperty(notes = "请求是哪里来的")
    private ClientFrom clientFrom;

    @ApiModelProperty(notes = "支付密码")
    private String payPassword;

    //下面的请求无需填写,后台会自动填充
    @ApiModelProperty(notes = "请求方ip")
    @JsonProperty(access = JsonProperty.Access.READ_ONLY)
    private String ip;
}
